Add const qualifier

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