Click movement help

im making a game, kind of like habbo hotel :P, where you click on a squae to move. i have the basic game set up, but there are just a few problems that i need sorted out.
the attatchment is below

what i need fixed is that when the guy moves, he moves up ^ and down v and left < and right > but i need him to stay inside the squares.

alsooo, how can i make it so instead of having my guy go to where everm i click , he goes to the middle of the square i clicked.