added functionality for game