Added states to goalkeeper and functionalities for goalposts