added flip board button
improved getMousePosition
added resign and offer draw buttons