added method to handle logic for checking if a position is empty