Implemented basic game engine