implemented goalkeeper behaviour