Racer game in Javascript