Implemented game functionality