Improving enemy mechanics and creating player crouch state