Using enums and a switch case statement is possibly the simplest way to add an FSM. Remember, this is only beneficial if a sprite has a lot of different states, if they're just jumping and running you won't need this, but it's good to know nevertheless.