additional checks in character drawing function