avoid to open door if already open
Better handling max floor and min floor