Added moving (-1) status to shared.getFloor and moved code block to its own method