Add a property dy to gems and make sure it always starts as zero. When gems fall, increase dy every frame until it settles either on another gem or on the bottom of the board