Move the code that sets the pac-man properties into 
a function.

-Fix bug that was happening every time that the character was stuck against a wall.