Handle visibility of game objects based on layer