resize canvas depending on window size, mark bad moves wile moveing