working on a "game"? also, relearning javascript. don't expect good code