simple game on javascript for lab class project