scala translation of zombie birds (www.kilobolt.com/zombie-bird-tutorial-flappy-bird-remake.html)