changed building requirement to use gameframe fuction