refactored test file and implemented separate game page