Code refactor

Added better header usage to background and gameEntity.