Please copy the full text of the compiler's error messages and paste it here.I am still getting the x's
The {}s are still not correctly placed. Their positions should reflect the nesting level of the statements they enclose.
The highest level statements should be to the left. Nested statements should be moved to the right 3-4 spaces.
Some lines have extra {s before the statement. There should NOT be any code on the same line following a {. Move the statement to the next line so the { is very easy to see.