Added tests; fixed game over checking