Optimizations to player_build

This is to exit out of the scope of the for loop when recipe match is
found.