It seems the webgl build is bugged ,but the idea is intresting.
Thanks for viewing this game! Unfortunately I ran out of time, I wanted to implement click to move the guards. Also the webgl version is not rendering the game properly. The red cube is only visible when it's within the field of view of the guard.