a simple game using basic java script