Implemented a simple game mechanics