Fixed some indentation and added position() attribute
Added a series of useful utility functions, such as retrieving all pieces of a specified color or retrieving all possible moves for one or all pieces