Added checks to the buttons to prevent ArrayIndexOutOfBounds exceptions
Moving frame loading to a seperate class.
Added foundation for implementing shops.