Code-Review

Please review my code
Do you think you can extract method to get coordinate, seems that code is duplicated here