Adding game functionality