Window borders collisions implemented