take message when input a position which is occupied