Slight optimizations... still can't get FULLY optimized because there's no way to tell if you'll be able to make the next move better.
Optimizations and stubs for layout file reading.