Implement building buy logic