basic game functions working