added gameplay functionality