Click on the corners (vertexes in math talk) and drag them and the rest of the shape will follow. Nothing is going wrong when the lines disappear they just do that because I can't build a better rendering engine lol.
it gets very messed up if it hits the edges lol you could build a house i guess