Server code for building placement