Problem with selecting troops in WebGL