Changed selector for checkSide funtion