Implementing basic game functionality