add gravity and change color of box