A simple chess game in perl in order to learn perl OO