Add const qualifier

I have added const qualifier to functions in various modules of the game.