Implemented basic game functions.