added x,y position mouse and some polygon implementations