converted to the state pattern
added crouching and crouching attacking