worked out the bugs in basic game mechanics