added validation on player attributes and fixed prebuilt tests