Tron implemented in Javascript