new method getSize() to get screen size. pieces shouldn't leave screen actually now.