Bug fixes and debug statements added for Player