javascript game doing it's basic function with buttons working