State machine now tries to update every 500th frame (Still only attack though)
Made the state change debug text better and fixed a critical bug with the state machine