Yes, it is bug. I'm glad that behind the buggy logic and lack of normal visuals and animations, you were able to see the main idea of the game.