fixing goal keeper states and supporting functions.