changes to parts of the code to make game logic more solid