fixed a but when handling wrong input at tile selection