add opacity functionality to the game