When I execute this logic, it only goes into the last two conditions. Is there any error that I'm not seeing?
Develop games in your browser. Powerful, performant & highly capable.