Finished basic game functions