Moved Hand class to its own file