Added mouseState and Rectangle implementation