Fixed bug, Added Component Listener

Fixed bug where an error would appear when you click the top right
corner. Fixed another bug where you could select pieces by clicking
outside the board. Fixed another bug where the top left rook would
disappear when you click outside the board. Added a component listener
that prints "RESIZED!" in command prompt whenever you resize the frame.
This update also includes David's added comments.