Create 2D game map with images

I will try to do that now, I think my problem is that I am moving the person using pixels not my grid i will see if i can find a solution or do it again

example how i am moving :

void Down(){
 
  if (PosX != 64){
  PosX = 64;
  } if(PosY !=0){
    PosY = 0;
  }
 y = y+16;
}