added attack logic

also added helper function to print the current board setup in console