ran into problems creating Player.getXPosition()

there's an error that occurs when I try to run it, but I run into this
error. Clearly it's a public function but when i try calling it in
PlayState, it refuses.
Fixing method access bug.

Easy thing to overlook. Player -> player. The class was being referenced and not the instance.

String class cannot be called to do casting. Using the conversions in Std instead.

 :D