First attempt at an educational javascript game