A javascript canvas maze built color detection collision