implement method checkObjectInFrame in GPGameLevel class