Fixed most issues with enemy movement. The enemy now uses states: chasing,searching, and returning that are determined by funtions which

The enemy now uses states: chasing,searching, and returning that are
determined by funtions which use a player's distance and velocity. The
enemy will chase the player if they get close enough and are moving fast
enough. The enemy will lose the exact position of the player if they
drop below a certain speed, and move to the last location where the
player was moving fast enough to chase(this is searching mode). If the
enemy reaches the last known location of the player, and are not
triggered to chase again, the enemy will return to their spawn
point(this is return mode).