updated CustomCamera class and game state.