replaced player with gridElement