code cleanup part 3/2
Code is now completly cleaned up and OOP. Also added and implemented a game class.