defined two types of move and coordinate

am experimenting features of Python and trying my best to write the code
in a Java style