implements functionality pacman moving up/down left/right and stop if wall

partly finished