Wrote play function
Made eval function defintion
added endState function definition
Added function definition for generating moves
fixed brackets