Racing game in nodejs