set window size and viewport dynamically
added collision with walls