bugs fixed after test game

bugs fixed after test game