Update player.py

fixes x/y inversion, fixes hydration, if action cannot be performed