Simple Game using Java Script