bugs

code is working but bugs in the game create difficulties