simple game in javascript