correct layering of robots by y pos