added test for tie game. refactored board class