Rewriting portions to improve code and fix game
Commented code