Storing positions into memory using the buttons on the door